﻿using _5._14._2015.App.Data.Model;
using _5._14._2015App.Adaptors.Interfaces;
using _5._14._2015App.Data;
using _5._14._2015App.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace _5._14._2015App.Adaptors.Adaptors
{
    public class StudentAdapter : IStudentAdapter
    {
        public List<Student> GetAllStudents()
        {
            List<Student> model;
        using (ApplicationDbContext db = new ApplicationDbContext())
        {
            model = db.Estudiantes.ToList();
                //Estudiantes.Include("StudentsANDCourses").ToList();
        }
        return model;
    }
    }
}